package com.down;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.down.util.DownloadFile;
import com.down.util.SelJdbc;


public class Main {

	public static void main(String[] args) throws IOException {
		// 通常为浏览器请求头header
		Map<String, String> connMap = new HashMap<String, String>();
		connMap.put("Content-Type", "application/json");
		connMap.put("charset", "utf-8");
		connMap.put("Accept", "application/json");
		connMap.put("Accept-Language", "en-US,en;q=0.8");
		connMap.put("Content-Type", "application/json;charset=UTF-8");
		DownloadFile.downLoadFromUrl("http://a3.att.hudong.com/14/75/01300000164186121366756803686.jpg", "E:\\temp_txt\\", connMap, 1000, "下载测试.jpg");

		SelJdbc jdbc = new SelJdbc();
		List<Map<String,Object>> list = jdbc.selectMuls();
		for(Map<String,Object> map : list) {
			System.out.println(map.get("text"));
		}
	}
}
